﻿using BUS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CameraProjects
{
    public partial class Default : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadDuLieu();
            }
        }

        private void LoadDuLieu()
        {
            CameraBUS cB = new CameraBUS();
            ddlMayAnh.DataSource = cB.GetListTop10();
            ddlMayAnh.DataBind();
            AccessoriesBUS aB = new AccessoriesBUS();
            ddlPhuKien.DataSource = aB.GetListTop10();
            ddlPhuKien.DataBind();

            ddlCameraContent.DataSource = cB.GetListAll();
            ddlCameraContent.DataBind();
        }
    }
}